package com.gzhryc.shared_device.iot.core.hryc.models;

import com.gzhryc.shared_device.iot.core.IOTMessage;
import com.gzhryc.shared_device.iot.core.IOTSynResponse;

public class HRYCIOTSynResponse extends IOTSynResponse {

	private static final long serialVersionUID = 1L;
	
	protected final Object response;
	
	public HRYCIOTSynResponse(Object response) {
		this.response = response;
	}

	public Object getResponse() {
		return response;
	}

	@Override
	public Boolean isSuccess() {
		return response != null;
	}
	
	@Override
	public Boolean isTimeout() {
		return false;
	}

	@Override
	public Integer getCode() {
		return null;
	}

	@Override
	public <T extends IOTMessage> T getMessage(Class<T> clazz) {
		return null;
	}

	@Override
	public IOTMessage getMessage() {
		return null;
	}
}
